public class 课后作业 {
    public static int find(int[] s) {

    }
    public static void main(String[] args) {
        int[] ret  = {1,1,2,2,4};
        int i = find(ret);
        System.out.println(i);
    }
    public static int[] twise(int[] s) {
        for (int i = 0; i < s.length; i++) {
            s[i] *= 2;
        }
        return s;
    }
    public static void main1(String[] args) {
        int[] ret = {1,2,3,4};
        int[] k = twise(ret);
        for (int i = 0; i < k.length; i++) {
            System.out.print(k[i] + " ");
        }
    }
}
